package edu.sjb.map.prizes;

import java.util.Vector;

public class PrizeQueue {
	private Vector<Prize> prizes;

	public PrizeQueue() {
		prizes = new Vector<Prize>();
	}

	public boolean isEmpty() {
		return prizes.size() == 0;
	}

	public int size() {
		return prizes.size();
	}

	public Prize[] toArray() {
		Prize[] res = (Prize[]) new Object[prizes.size()];
		for (int i = 0; i < prizes.size(); i++) {
			res[i] = prizes.get(i);
		}
		return res;
	}

	public void add(Prize arg0) {
		prizes.add(arg0);
	}

	public Prize top() {
		return prizes.elementAt(0);
	}
	
	public Prize removeTop() {
		return prizes.remove(0);
	}

}
